"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var element_plus_1 = require("element-plus");
// 状态管理
var state = (0, vue_1.reactive)({
    searchKey: '',
    factoryList: [],
    filteredFactoryList: [],
    currentPage: 1,
    pageSize: 10,
    jumpPage: '',
    total: 0,
    addPurchaseVisible: false,
    historyOrderVisible: false,
    factoryDetailVisible: false,
    materialLibraryVisible: false,
    previewVisible: false,
    previewUrl: '',
    currentFactory: {},
    purchaseForm: {
        factory: '',
        product: '',
        count: 1,
        amount: '',
        remark: ''
    },
    historyOrderList: [],
    materialFileList: [
        {
            name: '工厂宣传图1.png',
            url: 'https://example.com/image1.png'
        },
        {
            name: '产品手册.pdf',
            url: 'https://example.com/manual.pdf'
        }
    ]
});
var _a = (0, vue_1.toRefs)(state), searchKey = _a.searchKey, factoryList = _a.factoryList, filteredFactoryList = _a.filteredFactoryList, currentPage = _a.currentPage, pageSize = _a.pageSize, jumpPage = _a.jumpPage, total = _a.total, addPurchaseVisible = _a.addPurchaseVisible, historyOrderVisible = _a.historyOrderVisible, factoryDetailVisible = _a.factoryDetailVisible, materialLibraryVisible = _a.materialLibraryVisible, previewVisible = _a.previewVisible, previewUrl = _a.previewUrl, currentFactory = _a.currentFactory, purchaseForm = _a.purchaseForm, historyOrderList = _a.historyOrderList, materialFileList = _a.materialFileList;
// 计算总页数
var totalPages = (0, vue_1.computed)(function () {
    return Math.ceil(total.value / pageSize.value) || 1;
});
// 初始化工厂数据
var initFactoryData = function () {
    factoryList.value = [
        {
            brand: '工厂A',
            agentBrand: '阿玛尼',
            address: '江苏省南京市建邺区',
            responsiblePerson: '李云',
            contact: '15156107482',
            brandDiscount: '',
            brandManager: '张虎',
            instructor: '李笑笑',
            cashAccount: '',
            retailFundAccount: '',
            retailDeliveryAccount: '',
            email: '248439182@qq.com'
        },
        {
            brand: '工厂A',
            agentBrand: '阿玛尼',
            address: '江苏省南京市建邺区',
            responsiblePerson: '李云',
            contact: '15156107482',
            brandDiscount: '',
            brandManager: '张虎',
            instructor: '李笑笑',
            cashAccount: '',
            retailFundAccount: '',
            retailDeliveryAccount: '',
            email: '248439182@qq.com'
        }
    ];
    filteredFactoryList.value = __spreadArray([], factoryList.value, true);
    total.value = filteredFactoryList.value.length;
};
// 初始化数据
initFactoryData();
// 搜索功能
var handleSearch = function () {
    if (!searchKey.value.trim()) {
        filteredFactoryList.value = __spreadArray([], factoryList.value, true);
    }
    else {
        var keyword_1 = searchKey.value.trim();
        filteredFactoryList.value = factoryList.value.filter(function (item) {
            return item.brand.includes(keyword_1) ||
                item.agentBrand.includes(keyword_1) ||
                item.responsiblePerson.includes(keyword_1);
        });
    }
    total.value = filteredFactoryList.value.length;
    currentPage.value = 1; // 重置页码
};
// 返回按钮
var handleReturn = function () {
    // 实际项目中可通过路由返回上一页
    element_plus_1.ElMessage.info('返回上一级页面');
};
// 新增采购
var handleAddPurchase = function (row) {
    purchaseForm.value.factory = row.brand;
    currentFactory.value = row;
    addPurchaseVisible.value = true;
};
// 保存采购
var handleSavePurchase = function () {
    if (!purchaseForm.value.product || !purchaseForm.value.amount) {
        element_plus_1.ElMessage.error('请填写采购商品和金额');
        return;
    }
    // 模拟提交采购单
    element_plus_1.ElMessage.success('采购单提交成功');
    addPurchaseVisible.value = false;
};
// 往期订单
var handleHistoryOrder = function () {
    // 模拟往期订单数据
    historyOrderList.value = [
        {
            orderNo: 'CG20240601001',
            product: '阿玛尼口红',
            count: 50,
            amount: '¥25000',
            createTime: '2024-06-01',
            status: '已完成'
        },
        {
            orderNo: 'CG20240515002',
            product: '阿玛尼粉底液',
            count: 30,
            amount: '¥18000',
            createTime: '2024-05-15',
            status: '已完成'
        }
    ];
    historyOrderVisible.value = true;
};
// 查看工厂详情
var handleView = function (row) {
    currentFactory.value = row;
    factoryDetailVisible.value = true;
};
// 素材库
var handleMaterialLibrary = function () {
    materialLibraryVisible.value = true;
};
// 预览素材
var handlePreview = function (file) {
    previewUrl.value = file.url;
    previewVisible.value = true;
};
// 分页切换
var handleCurrentChange = function (val) {
    currentPage.value = val;
};
// 每页条数切换
var handleSizeChange = function (val) {
    pageSize.value = val;
    currentPage.value = 1; // 重置页码
};
// 页码跳转
var handleJumpPage = function () {
    var page = Number(jumpPage.value);
    if (isNaN(page) || page < 1 || page > totalPages.value) {
        element_plus_1.ElMessage.error("\u8BF7\u8F93\u51651-".concat(totalPages.value, "\u4E4B\u95F4\u7684\u9875\u7801"));
        return;
    }
    currentPage.value = page;
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['el-table']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "factory-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "page-header" }));
__VLS_asFunctionalElement(__VLS_elements.h2, __VLS_elements.h2)(__assign({ class: "page-title" }));
var __VLS_0 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0(__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "text" }), { class: "return-btn" })], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4;
var __VLS_5;
var __VLS_6 = ({ click: {} },
    { onClick: (__VLS_ctx.handleReturn) });
var __VLS_7 = __VLS_3.slots.default;
// @ts-ignore
[handleReturn,];
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "search-area" }));
var __VLS_8 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.searchKey), placeholder: "请输入搜索内容" }), { style: {} })));
var __VLS_10 = __VLS_9.apply(void 0, __spreadArray([__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.searchKey), placeholder: "请输入搜索内容" }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_9), false));
var __VLS_12;
var __VLS_13;
var __VLS_14 = ({ keyup: {} },
    { onKeyup: (__VLS_ctx.handleSearch) });
// @ts-ignore
[searchKey, handleSearch,];
var __VLS_11;
var __VLS_16 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16(__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "search-btn" })));
var __VLS_18 = __VLS_17.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary" }), { class: "search-btn" })], __VLS_functionalComponentArgsRest(__VLS_17), false));
var __VLS_20;
var __VLS_21;
var __VLS_22 = ({ click: {} },
    { onClick: (__VLS_ctx.handleSearch) });
var __VLS_23 = __VLS_19.slots.default;
// @ts-ignore
[handleSearch,];
var __VLS_19;
var __VLS_24 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24(__assign(__assign({ data: (__VLS_ctx.filteredFactoryList), border: true, stripe: true }, { style: {} }), { size: "small" })));
var __VLS_26 = __VLS_25.apply(void 0, __spreadArray([__assign(__assign({ data: (__VLS_ctx.filteredFactoryList), border: true, stripe: true }, { style: {} }), { size: "small" })], __VLS_functionalComponentArgsRest(__VLS_25), false));
var __VLS_28 = __VLS_27.slots.default;
// @ts-ignore
[filteredFactoryList,];
var __VLS_29 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({
    prop: "brand",
    label: "品牌",
    sortable: true,
    align: "center",
}));
var __VLS_31 = __VLS_30.apply(void 0, __spreadArray([{
        prop: "brand",
        label: "品牌",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_30), false));
var __VLS_34 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34({
    prop: "agentBrand",
    label: "代理品牌",
    sortable: true,
    align: "center",
}));
var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([{
        prop: "agentBrand",
        label: "代理品牌",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_35), false));
var __VLS_39 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_40 = __VLS_asFunctionalComponent(__VLS_39, new __VLS_39({
    prop: "address",
    label: "地址",
    sortable: true,
    align: "center",
}));
var __VLS_41 = __VLS_40.apply(void 0, __spreadArray([{
        prop: "address",
        label: "地址",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_40), false));
var __VLS_44 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
    prop: "responsiblePerson",
    label: "负责人",
    sortable: true,
    align: "center",
}));
var __VLS_46 = __VLS_45.apply(void 0, __spreadArray([{
        prop: "responsiblePerson",
        label: "负责人",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_45), false));
var __VLS_49 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_50 = __VLS_asFunctionalComponent(__VLS_49, new __VLS_49({
    prop: "contact",
    label: "联系方式",
    sortable: true,
    align: "center",
}));
var __VLS_51 = __VLS_50.apply(void 0, __spreadArray([{
        prop: "contact",
        label: "联系方式",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_50), false));
var __VLS_54 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({
    prop: "brandDiscount",
    label: "品牌折扣",
    sortable: true,
    align: "center",
}));
var __VLS_56 = __VLS_55.apply(void 0, __spreadArray([{
        prop: "brandDiscount",
        label: "品牌折扣",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_55), false));
var __VLS_59 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59({
    prop: "brandManager",
    label: "品牌经理",
    sortable: true,
    align: "center",
}));
var __VLS_61 = __VLS_60.apply(void 0, __spreadArray([{
        prop: "brandManager",
        label: "品牌经理",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_60), false));
var __VLS_64 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({
    prop: "instructor",
    label: "导师",
    sortable: true,
    align: "center",
}));
var __VLS_66 = __VLS_65.apply(void 0, __spreadArray([{
        prop: "instructor",
        label: "导师",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_65), false));
var __VLS_69 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_70 = __VLS_asFunctionalComponent(__VLS_69, new __VLS_69({
    prop: "cashAccount",
    label: "现金账户",
    sortable: true,
    align: "center",
}));
var __VLS_71 = __VLS_70.apply(void 0, __spreadArray([{
        prop: "cashAccount",
        label: "现金账户",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_70), false));
var __VLS_74 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74({
    prop: "retailFundAccount",
    label: "零售价资金账户",
    sortable: true,
    align: "center",
}));
var __VLS_76 = __VLS_75.apply(void 0, __spreadArray([{
        prop: "retailFundAccount",
        label: "零售价资金账户",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_75), false));
var __VLS_79 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_80 = __VLS_asFunctionalComponent(__VLS_79, new __VLS_79({
    prop: "retailDeliveryAccount",
    label: "零售配送货账户",
    sortable: true,
    align: "center",
}));
var __VLS_81 = __VLS_80.apply(void 0, __spreadArray([{
        prop: "retailDeliveryAccount",
        label: "零售配送货账户",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_80), false));
var __VLS_84 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84({
    prop: "email",
    label: "邮箱",
    sortable: true,
    align: "center",
}));
var __VLS_86 = __VLS_85.apply(void 0, __spreadArray([{
        prop: "email",
        label: "邮箱",
        sortable: true,
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_85), false));
var __VLS_89 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_90 = __VLS_asFunctionalComponent(__VLS_89, new __VLS_89({
    label: "采购订单",
    align: "center",
}));
var __VLS_91 = __VLS_90.apply(void 0, __spreadArray([{
        label: "采购订单",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_90), false));
var __VLS_93 = __VLS_92.slots.default;
{
    var __VLS_94 = __VLS_92.slots.default;
    var __VLS_95 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95(__assign({ 'onClick': {} }, { type: "primary", size: "mini" })));
    var __VLS_97 = __VLS_96.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary", size: "mini" })], __VLS_functionalComponentArgsRest(__VLS_96), false));
    var __VLS_99 = void 0;
    var __VLS_100 = void 0;
    var __VLS_101 = ({ click: {} },
        { onClick: (__VLS_ctx.handleAddPurchase) });
    var __VLS_102 = __VLS_98.slots.default;
    // @ts-ignore
    [handleAddPurchase,];
    var __VLS_98;
    var __VLS_103 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_104 = __VLS_asFunctionalComponent(__VLS_103, new __VLS_103(__assign(__assign({ 'onClick': {} }, { type: "default", size: "mini" }), { style: {} })));
    var __VLS_105 = __VLS_104.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "default", size: "mini" }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_104), false));
    var __VLS_107 = void 0;
    var __VLS_108 = void 0;
    var __VLS_109 = ({ click: {} },
        { onClick: (__VLS_ctx.handleHistoryOrder) });
    var __VLS_110 = __VLS_106.slots.default;
    // @ts-ignore
    [handleHistoryOrder,];
    var __VLS_106;
}
var __VLS_92;
var __VLS_111 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_112 = __VLS_asFunctionalComponent(__VLS_111, new __VLS_111({
    label: "操作",
    align: "center",
}));
var __VLS_113 = __VLS_112.apply(void 0, __spreadArray([{
        label: "操作",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_112), false));
var __VLS_115 = __VLS_114.slots.default;
{
    var __VLS_116 = __VLS_114.slots.default;
    var __VLS_117 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_118 = __VLS_asFunctionalComponent(__VLS_117, new __VLS_117(__assign({ 'onClick': {} }, { type: "success", size: "mini" })));
    var __VLS_119 = __VLS_118.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "success", size: "mini" })], __VLS_functionalComponentArgsRest(__VLS_118), false));
    var __VLS_121 = void 0;
    var __VLS_122 = void 0;
    var __VLS_123 = ({ click: {} },
        { onClick: (__VLS_ctx.handleView) });
    var __VLS_124 = __VLS_120.slots.default;
    // @ts-ignore
    [handleView,];
    var __VLS_120;
    var __VLS_125 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_126 = __VLS_asFunctionalComponent(__VLS_125, new __VLS_125(__assign(__assign({ 'onClick': {} }, { type: "info", size: "mini" }), { style: {} })));
    var __VLS_127 = __VLS_126.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "info", size: "mini" }), { style: {} })], __VLS_functionalComponentArgsRest(__VLS_126), false));
    var __VLS_129 = void 0;
    var __VLS_130 = void 0;
    var __VLS_131 = ({ click: {} },
        { onClick: (__VLS_ctx.handleMaterialLibrary) });
    var __VLS_132 = __VLS_128.slots.default;
    // @ts-ignore
    [handleMaterialLibrary,];
    var __VLS_128;
}
var __VLS_114;
var __VLS_27;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "pagination-area" }, { style: {} }));
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
(__VLS_ctx.total);
(__VLS_ctx.totalPages);
// @ts-ignore
[total, totalPages,];
var __VLS_133 = {}.ElPagination;
/** @type {[typeof __VLS_components.ElPagination, typeof __VLS_components.elPagination, ]} */ ;
// @ts-ignore
ElPagination;
// @ts-ignore
var __VLS_134 = __VLS_asFunctionalComponent(__VLS_133, new __VLS_133(__assign(__assign({ 'onCurrentChange': {} }, { 'onSizeChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSizes: ([10, 20, 30]), pageSize: (__VLS_ctx.pageSize), layout: "prev, pager, next", total: (__VLS_ctx.total) })));
var __VLS_135 = __VLS_134.apply(void 0, __spreadArray([__assign(__assign({ 'onCurrentChange': {} }, { 'onSizeChange': {} }), { currentPage: (__VLS_ctx.currentPage), pageSizes: ([10, 20, 30]), pageSize: (__VLS_ctx.pageSize), layout: "prev, pager, next", total: (__VLS_ctx.total) })], __VLS_functionalComponentArgsRest(__VLS_134), false));
var __VLS_137;
var __VLS_138;
var __VLS_139 = ({ currentChange: {} },
    { onCurrentChange: (__VLS_ctx.handleCurrentChange) });
var __VLS_140 = ({ sizeChange: {} },
    { onSizeChange: (__VLS_ctx.handleSizeChange) });
// @ts-ignore
[total, currentPage, pageSize, handleCurrentChange, handleSizeChange,];
var __VLS_136;
var __VLS_142 = {}.ElSelect;
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
// @ts-ignore
ElSelect;
// @ts-ignore
var __VLS_143 = __VLS_asFunctionalComponent(__VLS_142, new __VLS_142(__assign(__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), placeholder: "条数/页" }), { style: {} }), { size: "small" })));
var __VLS_144 = __VLS_143.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onChange': {} }, { modelValue: (__VLS_ctx.pageSize), placeholder: "条数/页" }), { style: {} }), { size: "small" })], __VLS_functionalComponentArgsRest(__VLS_143), false));
var __VLS_146;
var __VLS_147;
var __VLS_148 = ({ change: {} },
    { onChange: (__VLS_ctx.handleSizeChange) });
var __VLS_149 = __VLS_145.slots.default;
// @ts-ignore
[pageSize, handleSizeChange,];
var __VLS_150 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_151 = __VLS_asFunctionalComponent(__VLS_150, new __VLS_150({
    label: "10条/页",
    value: "10",
}));
var __VLS_152 = __VLS_151.apply(void 0, __spreadArray([{
        label: "10条/页",
        value: "10",
    }], __VLS_functionalComponentArgsRest(__VLS_151), false));
var __VLS_155 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155({
    label: "20条/页",
    value: "20",
}));
var __VLS_157 = __VLS_156.apply(void 0, __spreadArray([{
        label: "20条/页",
        value: "20",
    }], __VLS_functionalComponentArgsRest(__VLS_156), false));
var __VLS_160 = {}.ElOption;
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
// @ts-ignore
ElOption;
// @ts-ignore
var __VLS_161 = __VLS_asFunctionalComponent(__VLS_160, new __VLS_160({
    label: "30条/页",
    value: "30",
}));
var __VLS_162 = __VLS_161.apply(void 0, __spreadArray([{
        label: "30条/页",
        value: "30",
    }], __VLS_functionalComponentArgsRest(__VLS_161), false));
var __VLS_145;
__VLS_asFunctionalElement(__VLS_elements.span, __VLS_elements.span)({});
var __VLS_165 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_166 = __VLS_asFunctionalComponent(__VLS_165, new __VLS_165(__assign(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), type: "number" }), { style: {} }), { size: "small" })));
var __VLS_167 = __VLS_166.apply(void 0, __spreadArray([__assign(__assign(__assign({ 'onKeyup': {} }, { modelValue: (__VLS_ctx.jumpPage), type: "number" }), { style: {} }), { size: "small" })], __VLS_functionalComponentArgsRest(__VLS_166), false));
var __VLS_169;
var __VLS_170;
var __VLS_171 = ({ keyup: {} },
    { onKeyup: (__VLS_ctx.handleJumpPage) });
// @ts-ignore
[jumpPage, handleJumpPage,];
var __VLS_168;
var __VLS_173 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_174 = __VLS_asFunctionalComponent(__VLS_173, new __VLS_173(__assign({ 'onClick': {} }, { type: "primary", size: "small" })));
var __VLS_175 = __VLS_174.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary", size: "small" })], __VLS_functionalComponentArgsRest(__VLS_174), false));
var __VLS_177;
var __VLS_178;
var __VLS_179 = ({ click: {} },
    { onClick: (__VLS_ctx.handleJumpPage) });
var __VLS_180 = __VLS_176.slots.default;
// @ts-ignore
[handleJumpPage,];
var __VLS_176;
var __VLS_181 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_182 = __VLS_asFunctionalComponent(__VLS_181, new __VLS_181({
    title: "新增采购",
    modelValue: (__VLS_ctx.addPurchaseVisible),
    width: "60%",
    top: "10vh",
}));
var __VLS_183 = __VLS_182.apply(void 0, __spreadArray([{
        title: "新增采购",
        modelValue: (__VLS_ctx.addPurchaseVisible),
        width: "60%",
        top: "10vh",
    }], __VLS_functionalComponentArgsRest(__VLS_182), false));
var __VLS_185 = __VLS_184.slots.default;
// @ts-ignore
[addPurchaseVisible,];
var __VLS_186 = {}.ElForm;
/** @type {[typeof __VLS_components.ElForm, typeof __VLS_components.elForm, typeof __VLS_components.ElForm, typeof __VLS_components.elForm, ]} */ ;
// @ts-ignore
ElForm;
// @ts-ignore
var __VLS_187 = __VLS_asFunctionalComponent(__VLS_186, new __VLS_186({
    model: (__VLS_ctx.purchaseForm),
    labelWidth: "120px",
    size: "default",
}));
var __VLS_188 = __VLS_187.apply(void 0, __spreadArray([{
        model: (__VLS_ctx.purchaseForm),
        labelWidth: "120px",
        size: "default",
    }], __VLS_functionalComponentArgsRest(__VLS_187), false));
var __VLS_190 = __VLS_189.slots.default;
// @ts-ignore
[purchaseForm,];
var __VLS_191 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_192 = __VLS_asFunctionalComponent(__VLS_191, new __VLS_191({
    label: "采购工厂",
}));
var __VLS_193 = __VLS_192.apply(void 0, __spreadArray([{
        label: "采购工厂",
    }], __VLS_functionalComponentArgsRest(__VLS_192), false));
var __VLS_195 = __VLS_194.slots.default;
var __VLS_196 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_197 = __VLS_asFunctionalComponent(__VLS_196, new __VLS_196({
    modelValue: (__VLS_ctx.purchaseForm.factory),
    disabled: true,
}));
var __VLS_198 = __VLS_197.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.purchaseForm.factory),
        disabled: true,
    }], __VLS_functionalComponentArgsRest(__VLS_197), false));
// @ts-ignore
[purchaseForm,];
var __VLS_194;
var __VLS_201 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_202 = __VLS_asFunctionalComponent(__VLS_201, new __VLS_201({
    label: "采购商品",
    prop: "product",
}));
var __VLS_203 = __VLS_202.apply(void 0, __spreadArray([{
        label: "采购商品",
        prop: "product",
    }], __VLS_functionalComponentArgsRest(__VLS_202), false));
var __VLS_205 = __VLS_204.slots.default;
var __VLS_206 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_207 = __VLS_asFunctionalComponent(__VLS_206, new __VLS_206({
    modelValue: (__VLS_ctx.purchaseForm.product),
    placeholder: "请输入采购商品",
}));
var __VLS_208 = __VLS_207.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.purchaseForm.product),
        placeholder: "请输入采购商品",
    }], __VLS_functionalComponentArgsRest(__VLS_207), false));
// @ts-ignore
[purchaseForm,];
var __VLS_204;
var __VLS_211 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_212 = __VLS_asFunctionalComponent(__VLS_211, new __VLS_211({
    label: "采购数量",
    prop: "count",
}));
var __VLS_213 = __VLS_212.apply(void 0, __spreadArray([{
        label: "采购数量",
        prop: "count",
    }], __VLS_functionalComponentArgsRest(__VLS_212), false));
var __VLS_215 = __VLS_214.slots.default;
var __VLS_216 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_217 = __VLS_asFunctionalComponent(__VLS_216, new __VLS_216({
    modelValue: (__VLS_ctx.purchaseForm.count),
    modelModifiers: { number: true, },
    placeholder: "请输入采购数量",
    type: "number",
    min: "1",
}));
var __VLS_218 = __VLS_217.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.purchaseForm.count),
        modelModifiers: { number: true, },
        placeholder: "请输入采购数量",
        type: "number",
        min: "1",
    }], __VLS_functionalComponentArgsRest(__VLS_217), false));
// @ts-ignore
[purchaseForm,];
var __VLS_214;
var __VLS_221 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_222 = __VLS_asFunctionalComponent(__VLS_221, new __VLS_221({
    label: "采购金额",
    prop: "amount",
}));
var __VLS_223 = __VLS_222.apply(void 0, __spreadArray([{
        label: "采购金额",
        prop: "amount",
    }], __VLS_functionalComponentArgsRest(__VLS_222), false));
var __VLS_225 = __VLS_224.slots.default;
var __VLS_226 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_227 = __VLS_asFunctionalComponent(__VLS_226, new __VLS_226({
    modelValue: (__VLS_ctx.purchaseForm.amount),
    placeholder: "请输入采购金额",
    prefixIcon: "el-icon-money",
}));
var __VLS_228 = __VLS_227.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.purchaseForm.amount),
        placeholder: "请输入采购金额",
        prefixIcon: "el-icon-money",
    }], __VLS_functionalComponentArgsRest(__VLS_227), false));
// @ts-ignore
[purchaseForm,];
var __VLS_224;
var __VLS_231 = {}.ElFormItem;
/** @type {[typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, typeof __VLS_components.ElFormItem, typeof __VLS_components.elFormItem, ]} */ ;
// @ts-ignore
ElFormItem;
// @ts-ignore
var __VLS_232 = __VLS_asFunctionalComponent(__VLS_231, new __VLS_231({
    label: "采购备注",
}));
var __VLS_233 = __VLS_232.apply(void 0, __spreadArray([{
        label: "采购备注",
    }], __VLS_functionalComponentArgsRest(__VLS_232), false));
var __VLS_235 = __VLS_234.slots.default;
var __VLS_236 = {}.ElInput;
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
// @ts-ignore
ElInput;
// @ts-ignore
var __VLS_237 = __VLS_asFunctionalComponent(__VLS_236, new __VLS_236({
    modelValue: (__VLS_ctx.purchaseForm.remark),
    type: "textarea",
    rows: "3",
    placeholder: "请输入备注信息",
}));
var __VLS_238 = __VLS_237.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.purchaseForm.remark),
        type: "textarea",
        rows: "3",
        placeholder: "请输入备注信息",
    }], __VLS_functionalComponentArgsRest(__VLS_237), false));
// @ts-ignore
[purchaseForm,];
var __VLS_234;
var __VLS_189;
{
    var __VLS_241 = __VLS_184.slots.footer;
    var __VLS_242 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_243 = __VLS_asFunctionalComponent(__VLS_242, new __VLS_242(__assign({ 'onClick': {} })));
    var __VLS_244 = __VLS_243.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_243), false));
    var __VLS_246 = void 0;
    var __VLS_247 = void 0;
    var __VLS_248 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.addPurchaseVisible = false;
                // @ts-ignore
                [addPurchaseVisible,];
            } });
    var __VLS_249 = __VLS_245.slots.default;
    var __VLS_245;
    var __VLS_250 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_251 = __VLS_asFunctionalComponent(__VLS_250, new __VLS_250(__assign({ 'onClick': {} }, { type: "primary" })));
    var __VLS_252 = __VLS_251.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { type: "primary" })], __VLS_functionalComponentArgsRest(__VLS_251), false));
    var __VLS_254 = void 0;
    var __VLS_255 = void 0;
    var __VLS_256 = ({ click: {} },
        { onClick: (__VLS_ctx.handleSavePurchase) });
    var __VLS_257 = __VLS_253.slots.default;
    // @ts-ignore
    [handleSavePurchase,];
    var __VLS_253;
}
var __VLS_184;
var __VLS_258 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_259 = __VLS_asFunctionalComponent(__VLS_258, new __VLS_258({
    title: "往期订单",
    modelValue: (__VLS_ctx.historyOrderVisible),
    width: "70%",
    top: "10vh",
}));
var __VLS_260 = __VLS_259.apply(void 0, __spreadArray([{
        title: "往期订单",
        modelValue: (__VLS_ctx.historyOrderVisible),
        width: "70%",
        top: "10vh",
    }], __VLS_functionalComponentArgsRest(__VLS_259), false));
var __VLS_262 = __VLS_261.slots.default;
// @ts-ignore
[historyOrderVisible,];
var __VLS_263 = {}.ElTable;
/** @type {[typeof __VLS_components.ElTable, typeof __VLS_components.elTable, typeof __VLS_components.ElTable, typeof __VLS_components.elTable, ]} */ ;
// @ts-ignore
ElTable;
// @ts-ignore
var __VLS_264 = __VLS_asFunctionalComponent(__VLS_263, new __VLS_263({
    data: (__VLS_ctx.historyOrderList),
    border: true,
    stripe: true,
    size: "small",
}));
var __VLS_265 = __VLS_264.apply(void 0, __spreadArray([{
        data: (__VLS_ctx.historyOrderList),
        border: true,
        stripe: true,
        size: "small",
    }], __VLS_functionalComponentArgsRest(__VLS_264), false));
var __VLS_267 = __VLS_266.slots.default;
// @ts-ignore
[historyOrderList,];
var __VLS_268 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_269 = __VLS_asFunctionalComponent(__VLS_268, new __VLS_268({
    prop: "orderNo",
    label: "订单编号",
    align: "center",
}));
var __VLS_270 = __VLS_269.apply(void 0, __spreadArray([{
        prop: "orderNo",
        label: "订单编号",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_269), false));
var __VLS_273 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_274 = __VLS_asFunctionalComponent(__VLS_273, new __VLS_273({
    prop: "product",
    label: "采购商品",
    align: "center",
}));
var __VLS_275 = __VLS_274.apply(void 0, __spreadArray([{
        prop: "product",
        label: "采购商品",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_274), false));
var __VLS_278 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_279 = __VLS_asFunctionalComponent(__VLS_278, new __VLS_278({
    prop: "count",
    label: "采购数量",
    align: "center",
}));
var __VLS_280 = __VLS_279.apply(void 0, __spreadArray([{
        prop: "count",
        label: "采购数量",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_279), false));
var __VLS_283 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_284 = __VLS_asFunctionalComponent(__VLS_283, new __VLS_283({
    prop: "amount",
    label: "采购金额",
    align: "center",
}));
var __VLS_285 = __VLS_284.apply(void 0, __spreadArray([{
        prop: "amount",
        label: "采购金额",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_284), false));
var __VLS_288 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_289 = __VLS_asFunctionalComponent(__VLS_288, new __VLS_288({
    prop: "createTime",
    label: "采购时间",
    align: "center",
}));
var __VLS_290 = __VLS_289.apply(void 0, __spreadArray([{
        prop: "createTime",
        label: "采购时间",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_289), false));
var __VLS_293 = {}.ElTableColumn;
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
// @ts-ignore
ElTableColumn;
// @ts-ignore
var __VLS_294 = __VLS_asFunctionalComponent(__VLS_293, new __VLS_293({
    prop: "status",
    label: "订单状态",
    align: "center",
}));
var __VLS_295 = __VLS_294.apply(void 0, __spreadArray([{
        prop: "status",
        label: "订单状态",
        align: "center",
    }], __VLS_functionalComponentArgsRest(__VLS_294), false));
var __VLS_297 = __VLS_296.slots.default;
{
    var __VLS_298 = __VLS_296.slots.default;
    var scope = __VLS_getSlotParameters(__VLS_298)[0];
    var __VLS_299 = {}.ElTag;
    /** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
    // @ts-ignore
    ElTag;
    // @ts-ignore
    var __VLS_300 = __VLS_asFunctionalComponent(__VLS_299, new __VLS_299({
        type: (scope.row.status === '已完成' ? 'success' : 'warning'),
    }));
    var __VLS_301 = __VLS_300.apply(void 0, __spreadArray([{
            type: (scope.row.status === '已完成' ? 'success' : 'warning'),
        }], __VLS_functionalComponentArgsRest(__VLS_300), false));
    var __VLS_303 = __VLS_302.slots.default;
    (scope.row.status);
    var __VLS_302;
}
var __VLS_296;
var __VLS_266;
{
    var __VLS_304 = __VLS_261.slots.footer;
    var __VLS_305 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_306 = __VLS_asFunctionalComponent(__VLS_305, new __VLS_305(__assign({ 'onClick': {} })));
    var __VLS_307 = __VLS_306.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_306), false));
    var __VLS_309 = void 0;
    var __VLS_310 = void 0;
    var __VLS_311 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.historyOrderVisible = false;
                // @ts-ignore
                [historyOrderVisible,];
            } });
    var __VLS_312 = __VLS_308.slots.default;
    var __VLS_308;
}
var __VLS_261;
var __VLS_313 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_314 = __VLS_asFunctionalComponent(__VLS_313, new __VLS_313({
    title: "工厂详情",
    modelValue: (__VLS_ctx.factoryDetailVisible),
    width: "70%",
    top: "10vh",
}));
var __VLS_315 = __VLS_314.apply(void 0, __spreadArray([{
        title: "工厂详情",
        modelValue: (__VLS_ctx.factoryDetailVisible),
        width: "70%",
        top: "10vh",
    }], __VLS_functionalComponentArgsRest(__VLS_314), false));
var __VLS_317 = __VLS_316.slots.default;
// @ts-ignore
[factoryDetailVisible,];
var __VLS_318 = {}.ElDescriptions;
/** @type {[typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, typeof __VLS_components.ElDescriptions, typeof __VLS_components.elDescriptions, ]} */ ;
// @ts-ignore
ElDescriptions;
// @ts-ignore
var __VLS_319 = __VLS_asFunctionalComponent(__VLS_318, new __VLS_318({
    column: "2",
    border: true,
}));
var __VLS_320 = __VLS_319.apply(void 0, __spreadArray([{
        column: "2",
        border: true,
    }], __VLS_functionalComponentArgsRest(__VLS_319), false));
var __VLS_322 = __VLS_321.slots.default;
var __VLS_323 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_324 = __VLS_asFunctionalComponent(__VLS_323, new __VLS_323({
    label: "品牌",
}));
var __VLS_325 = __VLS_324.apply(void 0, __spreadArray([{
        label: "品牌",
    }], __VLS_functionalComponentArgsRest(__VLS_324), false));
var __VLS_327 = __VLS_326.slots.default;
(__VLS_ctx.currentFactory.brand);
// @ts-ignore
[currentFactory,];
var __VLS_326;
var __VLS_328 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_329 = __VLS_asFunctionalComponent(__VLS_328, new __VLS_328({
    label: "代理品牌",
}));
var __VLS_330 = __VLS_329.apply(void 0, __spreadArray([{
        label: "代理品牌",
    }], __VLS_functionalComponentArgsRest(__VLS_329), false));
var __VLS_332 = __VLS_331.slots.default;
(__VLS_ctx.currentFactory.agentBrand);
// @ts-ignore
[currentFactory,];
var __VLS_331;
var __VLS_333 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_334 = __VLS_asFunctionalComponent(__VLS_333, new __VLS_333({
    label: "地址",
}));
var __VLS_335 = __VLS_334.apply(void 0, __spreadArray([{
        label: "地址",
    }], __VLS_functionalComponentArgsRest(__VLS_334), false));
var __VLS_337 = __VLS_336.slots.default;
(__VLS_ctx.currentFactory.address);
// @ts-ignore
[currentFactory,];
var __VLS_336;
var __VLS_338 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_339 = __VLS_asFunctionalComponent(__VLS_338, new __VLS_338({
    label: "负责人",
}));
var __VLS_340 = __VLS_339.apply(void 0, __spreadArray([{
        label: "负责人",
    }], __VLS_functionalComponentArgsRest(__VLS_339), false));
var __VLS_342 = __VLS_341.slots.default;
(__VLS_ctx.currentFactory.responsiblePerson);
// @ts-ignore
[currentFactory,];
var __VLS_341;
var __VLS_343 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_344 = __VLS_asFunctionalComponent(__VLS_343, new __VLS_343({
    label: "联系方式",
}));
var __VLS_345 = __VLS_344.apply(void 0, __spreadArray([{
        label: "联系方式",
    }], __VLS_functionalComponentArgsRest(__VLS_344), false));
var __VLS_347 = __VLS_346.slots.default;
(__VLS_ctx.currentFactory.contact);
// @ts-ignore
[currentFactory,];
var __VLS_346;
var __VLS_348 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_349 = __VLS_asFunctionalComponent(__VLS_348, new __VLS_348({
    label: "品牌经理",
}));
var __VLS_350 = __VLS_349.apply(void 0, __spreadArray([{
        label: "品牌经理",
    }], __VLS_functionalComponentArgsRest(__VLS_349), false));
var __VLS_352 = __VLS_351.slots.default;
(__VLS_ctx.currentFactory.brandManager);
// @ts-ignore
[currentFactory,];
var __VLS_351;
var __VLS_353 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_354 = __VLS_asFunctionalComponent(__VLS_353, new __VLS_353({
    label: "导师",
}));
var __VLS_355 = __VLS_354.apply(void 0, __spreadArray([{
        label: "导师",
    }], __VLS_functionalComponentArgsRest(__VLS_354), false));
var __VLS_357 = __VLS_356.slots.default;
(__VLS_ctx.currentFactory.instructor);
// @ts-ignore
[currentFactory,];
var __VLS_356;
var __VLS_358 = {}.ElDescriptionsItem;
/** @type {[typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, typeof __VLS_components.ElDescriptionsItem, typeof __VLS_components.elDescriptionsItem, ]} */ ;
// @ts-ignore
ElDescriptionsItem;
// @ts-ignore
var __VLS_359 = __VLS_asFunctionalComponent(__VLS_358, new __VLS_358({
    label: "邮箱",
}));
var __VLS_360 = __VLS_359.apply(void 0, __spreadArray([{
        label: "邮箱",
    }], __VLS_functionalComponentArgsRest(__VLS_359), false));
var __VLS_362 = __VLS_361.slots.default;
(__VLS_ctx.currentFactory.email);
// @ts-ignore
[currentFactory,];
var __VLS_361;
var __VLS_321;
{
    var __VLS_363 = __VLS_316.slots.footer;
    var __VLS_364 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_365 = __VLS_asFunctionalComponent(__VLS_364, new __VLS_364(__assign({ 'onClick': {} })));
    var __VLS_366 = __VLS_365.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_365), false));
    var __VLS_368 = void 0;
    var __VLS_369 = void 0;
    var __VLS_370 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.factoryDetailVisible = false;
                // @ts-ignore
                [factoryDetailVisible,];
            } });
    var __VLS_371 = __VLS_367.slots.default;
    var __VLS_367;
}
var __VLS_316;
var __VLS_372 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_373 = __VLS_asFunctionalComponent(__VLS_372, new __VLS_372({
    title: "素材库",
    modelValue: (__VLS_ctx.materialLibraryVisible),
    width: "70%",
    top: "10vh",
}));
var __VLS_374 = __VLS_373.apply(void 0, __spreadArray([{
        title: "素材库",
        modelValue: (__VLS_ctx.materialLibraryVisible),
        width: "70%",
        top: "10vh",
    }], __VLS_functionalComponentArgsRest(__VLS_373), false));
var __VLS_376 = __VLS_375.slots.default;
// @ts-ignore
[materialLibraryVisible,];
var __VLS_377 = {}.ElUpload;
/** @type {[typeof __VLS_components.ElUpload, typeof __VLS_components.elUpload, typeof __VLS_components.ElUpload, typeof __VLS_components.elUpload, ]} */ ;
// @ts-ignore
ElUpload;
// @ts-ignore
var __VLS_378 = __VLS_asFunctionalComponent(__VLS_377, new __VLS_377(__assign({ class: "upload-demo" }, { action: "#", listType: "picture-card", fileList: (__VLS_ctx.materialFileList), onPreview: (__VLS_ctx.handlePreview) })));
var __VLS_379 = __VLS_378.apply(void 0, __spreadArray([__assign({ class: "upload-demo" }, { action: "#", listType: "picture-card", fileList: (__VLS_ctx.materialFileList), onPreview: (__VLS_ctx.handlePreview) })], __VLS_functionalComponentArgsRest(__VLS_378), false));
var __VLS_381 = __VLS_380.slots.default;
// @ts-ignore
[materialFileList, handlePreview,];
__VLS_asFunctionalElement(__VLS_elements.i, __VLS_elements.i)(__assign({ class: "el-icon-plus" }));
var __VLS_380;
var __VLS_382 = {}.ElDialog;
/** @type {[typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, typeof __VLS_components.ElDialog, typeof __VLS_components.elDialog, ]} */ ;
// @ts-ignore
ElDialog;
// @ts-ignore
var __VLS_383 = __VLS_asFunctionalComponent(__VLS_382, new __VLS_382({
    modelValue: (__VLS_ctx.previewVisible),
    title: "素材预览",
    width: "80%",
}));
var __VLS_384 = __VLS_383.apply(void 0, __spreadArray([{
        modelValue: (__VLS_ctx.previewVisible),
        title: "素材预览",
        width: "80%",
    }], __VLS_functionalComponentArgsRest(__VLS_383), false));
var __VLS_386 = __VLS_385.slots.default;
// @ts-ignore
[previewVisible,];
__VLS_asFunctionalElement(__VLS_elements.img)(__assign({ src: (__VLS_ctx.previewUrl) }, { style: {} }));
// @ts-ignore
[previewUrl,];
var __VLS_385;
{
    var __VLS_387 = __VLS_375.slots.footer;
    var __VLS_388 = {}.ElButton;
    /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
    // @ts-ignore
    ElButton;
    // @ts-ignore
    var __VLS_389 = __VLS_asFunctionalComponent(__VLS_388, new __VLS_388(__assign({ 'onClick': {} })));
    var __VLS_390 = __VLS_389.apply(void 0, __spreadArray([__assign({ 'onClick': {} })], __VLS_functionalComponentArgsRest(__VLS_389), false));
    var __VLS_392 = void 0;
    var __VLS_393 = void 0;
    var __VLS_394 = ({ click: {} },
        { onClick: function () {
                var _a = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    _a[_i] = arguments[_i];
                }
                var $event = _a[0];
                __VLS_ctx.materialLibraryVisible = false;
                // @ts-ignore
                [materialLibraryVisible,];
            } });
    var __VLS_395 = __VLS_391.slots.default;
    var __VLS_391;
}
var __VLS_375;
/** @type {__VLS_StyleScopedClasses['factory-page']} */ ;
/** @type {__VLS_StyleScopedClasses['page-header']} */ ;
/** @type {__VLS_StyleScopedClasses['page-title']} */ ;
/** @type {__VLS_StyleScopedClasses['return-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['search-area']} */ ;
/** @type {__VLS_StyleScopedClasses['search-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['pagination-area']} */ ;
/** @type {__VLS_StyleScopedClasses['upload-demo']} */ ;
/** @type {__VLS_StyleScopedClasses['el-icon-plus']} */ ;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
